import { Body, Controller, Get, HttpException, HttpStatus, Post } from "@nestjs/common";
import { CatsService } from "./cats.service";
import { CreateCatDto } from "./create-cat.dto";

@Controller('cats')
export class CatsController {
	constructor(private readonly catsService: CatsService) {}

	@Get()
	getHello(): string {
		return this.catsService.getHello();
	}

	@Get('/hello')
	test(): string {
		return this.catsService.test();
	}

	@Post()
	async create(@Body() createCatDto: CreateCatDto) {
		return 'This action adds a new cat';
	}
}
